package com.liyong;


import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;


@MapperScan("com.liyong.dao")
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
public class LiyongBlogApplication {

    private static final Logger log = LoggerFactory.getLogger(LiyongBlogApplication.class);

    public static void main(String[] args) {


//        try {
//            String msg = null;
//            msg.length();
//            System.out.println(1/0);
//        } catch (Exception exception) {
//            System.out.println(exception.getMessage());
//            log.error("===============hello log===================" + exception.getMessage());
//        }

        log.warn("");
        log.error("");
        log.info("");
        log.trace("");
        log.debug("");

        SpringApplication.run(LiyongBlogApplication.class, args);


    }
}
